home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 48 lines | [TEXT/GEOL] |
- Item 1574702 10-July-90 23:24PDT
-
- From: SW0092 SWD Administrator AB, Sthlm,IDV
-
- To: D2086 Efficient Field Svc, C Faith,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: Page Setup Default Thread
-
-
- I did the same as Perry. It seems to work fine. I think I found this in a
- document called Learning To Drive that I downloaded some time ago. It gives
- some tips on writing printer drivers. I can't remember where I found it on
- Applelink.
-
-
-
- PROCEDURE TYourPrintHandler.Reset;
- TYPE
- TXWord = PACKED RECORD
- CASE INTEGER OF
- 0: (c1, c0: CHAR);
- 1: (b1, b0: SignedByte);
- 2: (f15, f14, f13, f12, f11, f10, f9, f8, f7, f6, f5, f4, f3, f2, f1, f0:
- BOOLEAN);
- 3: (i0: INTEGER);
- END;
- VAR
- didChange : BOOLEAN;
- aHPrint : Handle;
- BEGIN
- INHERITED Reset;
- aHPrint := fHPrint;
- IF gCouldPrint & (aHPrint<>NIL) THEN
- WITH TXWord(THPrint(aHPrint)^^.prStl.wDev) DO
- IF b1 = 3 THEN
- BEGIN
- aHPrint^^.printX[6]:= 96; { <--- Set maximum print area }
- ValidatePrintRecord(didChange);
- END;
- END;
-
- Yours
-
- Kent Hosselton
-
-